﻿using AutoMapper;
using MyCompany.MyProject.WebApi.ModelDto.UserDto;

namespace MyCompany.MyProject.WebApi.ModelDto;

/// <summary>
/// AutoMapperConfig
/// </summary>
public class AutoMapperConfig
{
    /// <summary>
    /// 注册Mapper
    /// </summary>
    /// <returns></returns>
    public static MapperConfiguration RegisterMappings()
    {
        return new MapperConfiguration(cfg =>
        {
            cfg.AddProfile(new UserProfile());
        });
    }
}
